package com.gjs.resource.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.gjs.common.enums.entity.EducationResourceFileTypeEnum;
import com.gjs.common.enums.entity.EducationResourceStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 资源管理
 *
 * 2022年3月11日：
 * 因天马的education_resource表存在一些弃用字段或与目前业务无关字段
 * 所以该实体类只定义有用字段，防止无用字段被误用到业务中。
 * </p>
 *
 * @author JC_Ho
 * @since 2022-03-11
 */
@Getter
@Setter
@TableName("education_resource")
@ApiModel(value = "EducationResource对象", description = "资源管理")
public class EducationResource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty("上传者")
    @TableField("name")
    private String name;

    @ApiModelProperty("状态")
    @TableField("status")
    private EducationResourceStatusEnum status;

    @ApiModelProperty("所属类型")
    @TableField("resourceChannel_id")
    private Long resourceChannelId;

    @ApiModelProperty("所属版本")
    @TableField("resourceEdition_id")
    private Long resourceEditionId;

    @ApiModelProperty("所属学段")
    @TableField("resourcePeriod_id")
    private Long resourcePeriodId;

    @ApiModelProperty("所属阶段")
    @TableField("resourceStage_id")
    private Long resourceStageId;

    @ApiModelProperty("所属学科")
    @TableField("resourceSubject_id")
    private Long resourceSubjectId;

    @ApiModelProperty("可修改附件名称")
    @TableField("fileTitle")
    private String fileTitle;

    @ApiModelProperty("真实附件名称")
    @TableField("realTitle")
    private String realTitle;

    @ApiModelProperty("资源文件类型")
    @TableField("fileType")
    private EducationResourceFileTypeEnum fileType;
}
